package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.DotificationPictures;
import com.ruoyi.system.domain.SysNotice;
import com.ruoyi.system.mapper.DotificationPicturesMapper;
import com.ruoyi.system.mapper.SysNoticeMapper;
import com.ruoyi.system.service.IDotificationPicturesService;
import com.ruoyi.system.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 公告 服务层实现
 * 
 * @author ruoyi
 */
@Service
public class DotificationPicturesServiceImpl implements IDotificationPicturesService
{
    @Autowired
    private DotificationPicturesMapper dotificationPicturesMapper;

    /**
     * 查询公告信息
     * 
     * @return 公告信息
     */
    @Override
    public DotificationPictures select()
    {
        return dotificationPicturesMapper.select();
    }


    /**
     * 新增公告
     * 
     * @param notice 公告信息
     * @return 结果
     */
    @Override
    public int insertNotice(DotificationPictures notice)
    {
        return dotificationPicturesMapper.insertNotice(notice);
    }

    /**
     * 修改公告
     * 
     * @param notice 公告信息
     * @return 结果
     */
    @Override
    public int updateNotice(DotificationPictures notice)
    {
        return dotificationPicturesMapper.updateNotice(notice);
    }

}
